package com.wwf.fegin;

import com.wwf.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author wwf
 * @date 2021年02月04日 16:28:03
 */
@FeignClient(name = "my-service-code",path = "/code")
public interface IAuthCodeService {
    @GetMapping("/create/{email}")
    public Result<Map> create(@PathVariable("email") String email);

    @GetMapping("/validate/{email}/{code}")
    public String validate(@PathVariable("email") String email,@PathVariable("code") String code);
}
